/* See the file "LICENSE" for the full license governing this code. */
 
package com.plugandcare.graphyty.model;

import java.io.Serializable;


/**
 * Interface for data classes that want to track the origin of the measured data.
 * 
 * @author Steven Mohr
 *
 */
public abstract class VitalSign implements Serializable{
    private static final long serialVersionUID = 6502223510764957801L;
    protected String measurementDeviceDisplayName;
    protected String measurementDeviceId;
    protected long timestamp;
    protected String unit;

    public void setMeasurementDeviceId(String measurementDeviceId) {
        this.measurementDeviceId = measurementDeviceId;
    }

    public String getMeasurementDeviceId() {
        return measurementDeviceId;
    }

    public void setMeasurementDeviceDisplayName(String measurementDeviceDisplayName) {
        this.measurementDeviceDisplayName = measurementDeviceDisplayName;
    }

    public String getMeasurementDeviceDisplayName() {
        return measurementDeviceDisplayName;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }
    
    /**
     * Returns the measurement in a human-readable way.
     * 
     * @return Measurement
     */
    public abstract String getMeasurement();

}
